package com.gec.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.model.entity.SysRole;
import com.gec.model.vo.AssginRoleVo;
import com.gec.model.vo.SysRoleQueryVo;
import com.gec.system.mapper.SysRoleMapper;
import com.gec.system.service.SysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author lxj
 * @since 2024-03-07
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {


    //    无需去调用 mapper,因为 extends ServiceImpl<SysRoleMapper, SysRole>，
//    如何调用，使用  this.
    @Override
    public IPage<SysRole> selectPage(IPage<SysRole> page1, SysRoleQueryVo sysRoleQueryVo) {
        IPage<SysRole>  iPage = this.getBaseMapper().selectPage(page1, sysRoleQueryVo);
        return iPage;
    }
}
